home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-20 / nosmail.zip / MBOX_FWD.DOC < prev   
Text File  |  1990-11-06  |  9KB  |  214 lines

  1. ======== [31] ================================================================
  2. Subject: NOS Mbox forwarding
  3. From: From: klemets@sics.se
  4. Date: Wed, 10 Oct 90 21:55:00 +0100
  5. ==============================================================================
  6. The NOS mailbox now supports forwarding, both outgoing forwarding and
  7. reverse forwarding. It keeps track of which bulletins have been
  8. forwarded by adding "X-Forwarded-To:" lines to the messages. Messages
  9. in public "areas" are sent as bulletins, with BID and everything.
  10. Messages from private areas are treated as private mail and are
  11. deleted after forwarding.
  12.  
  13. The message areas can be checked for messages to forward at a regular
  14. intervals, which is set with the "mbox timer" command.
  15. Forwarding can be started immediately with the "mbox kick" command.
  16. There is also a "mbox motd" and a "mbox attended" command, which I
  17. picked from the G1EMM code.
  18. There is a new command in the mailbox too, "Verbose." It displays a
  19. message with all it header lines, contrary to "Read" which only shows
  20. four lines. It is also possible to read a message simply by typing its
  21. number.
  22.  
  23. The mailbox reads a forwarding file, "spool/forward.bbs". Here is a
  24. sample file:
  25.  
  26. sk0tm 0006
  27. ax25 ax0 sk0tm
  28. sk0tm
  29. amsat
  30. all
  31. ------
  32. sm0rgv
  33. netrom #sth675
  34. .c sm0rgv-2
  35. sm0rgv
  36. amsat
  37.  
  38. The first word on the first line in a forwarding record is the name of
  39. the BBS to forward to. This should be the same type of name which is
  40. shown by the "mbox status" command. The second word is optional. It
  41. specifies a range when forwarding may take place. "0006" means that
  42. there will only be forwarding to this station between midnight and 6am.
  43.  
  44. The second line specifies how to establish the connection. It should
  45. start with the protocol (ax25, tcp or netrom) and be followed by all
  46. the parameters which are necessary when NOS has to establish a network
  47. connection.
  48.  
  49. Directly after the second line there may be lines that start with a
  50. dot. What follows after the dot will be sent to the remote BBS as soon
  51. as the connection is established.
  52.  
  53. Then follows the names of a number of message areas, public or
  54. private. Finally, there should be a couple of '-' signs to separate
  55. one forwarding record from another.
  56.  
  57. The code seems to be working, although there could of course be bugs
  58. left. Anyway, the source is available with ftp from sics.se. The
  59. filename is archive/packet/ka9q/nos/mailbox.arc.
  60.  
  61. As usual, this message is the only documentation, so it could be worth
  62. saving.
  63.  
  64. Anders
  65.  
  66. ======== [01] ================================================================
  67. Subject: NOS mbox forwarding
  68. From: From: klemets@sics.se
  69. Date: Fri, 12 Oct 90 16:07:56 +0100
  70. ==============================================================================
  71. The latest version of mailbox.arc at sics.se dated October 12, 14:36,
  72. contains some bug fixes, not only to the forwarding code but to the
  73. general message handling mechanism as well.
  74.  
  75. Now there is support for what people call "hierarchical routing
  76. designators."
  77. The mailbox now understands its own "*** LINKED to" message...
  78.  
  79. It is possible to specify several time intervals in the forward.bbs
  80. file. For instance: "w0xxx 0006,1212" means that there may be
  81. forwarding to w0xxx whenever the forwarding timer expires from midnight
  82. until 7 am, and from noon until 1 pm.
  83.  
  84. Anders
  85.  
  86. ======== [12] ================================================================
  87. Subject: Re: NOS Mbox forwarding
  88. From: From: klemets@sics.se
  89. Date: Mon, 15 Oct 90 11:56:41 +0100
  90. ==============================================================================
  91. >  Is there a way to send a message that is for a user at a bbs, rather than
  92. > the bbs's owner?  I can do it if I edit the .txt file in the mail directory
  93. > to have the To: address I want, so my problem is how does one get a message
  94. > for kb3kj @ w3ya  to be placed in the w3ya  mail area.  There must be
  95. > something I am overlooking.
  96.  
  97. When a message is entered to the mailbox, the address is rewritten
  98. according to rules in the /spool/rewrite file. The first word on
  99. each line in the rewrite file is an address using wildcards. If that
  100. address matches the address you are trying to rewrite, it is rewritten
  101. according to the format of the second word. If the third word is an 'r',
  102. the rewrite procedure will be repeated, now using the new address as
  103. input.
  104.  
  105. Ok, so here is a sample /spool/rewrite file for a machine with the
  106. hostname sk0we.ampr.org:
  107.  
  108. *!* $2@$1 r
  109. *@sk0we.ampr.org $1 r
  110. *@*.ampr.org $1@$2.ampr.org
  111. sm0rgv@* sm0rgv
  112. *@w3ya* w3ya
  113. *@k* $1%k$2%w3iwi.ampr.org@tomcat.gsfc.nasa.gov
  114.  
  115. The first line means that addresses written in the "host!user" format
  116. should be rewritten to "user@host" and then the rewrite procedure
  117. should be repeated.
  118.  
  119. The second line converts the address "user@sk0we.ampr.org" into the
  120. local address "user" and then repeats the rewrite procedure.
  121.  
  122. The third line seems to do nothing. It just converts "user@host.ampr.org"
  123. to "user@host.ampr.org". But it also exits the rewrite procedure
  124. since the line does not end with an 'r'. Any address ending with
  125. ".ampr.org" will not be converted further.
  126.  
  127. The line "sm0rgv@* sm0rgv" will keep mail for sm0rgv on the local
  128. machine even if it is mistakenly addressed to another BBS, such as
  129. "sm0rgv@w3iwi". The line will however fail to convert addresses such
  130. as "sm0rgv@w3iwi.ampr.org" because of the line described in the
  131. previous paragraph.
  132.  
  133. The line "*@w3ya* w3ya" will leave mail for "user@w3ya" in the local
  134. message area named "w3ya". The same goes for mail using some sort of
  135. hierarchical routing designators such as "user@w3ya.state.na.us". The
  136. only exception is for mail addressed to "user@w3ya.ampr.org" as
  137. described above.
  138.  
  139. The line "*@k* $1%k$2%w3iwi.ampr.org@tomcat.gsfc.nasa.gov" is an
  140. example of how to establish an Internet "wormhole." Suppose I want to
  141. forward all mail to stations with callsigns starting with K to W3IWI
  142. through the Internet. The line quoted above would do it. But if the
  143. mail for "user@kxxxx" is received by w3iwi.ampr.org with SMTP, there
  144. might be some problems because the rewrite file is not scanned when
  145. mail is received with SMTP. This could easily be changed however. Let
  146. me know if this is causing you any inconveniencies.
  147.  
  148. Anders
  149.  
  150. ==============================================================================
  151. Subject: Latest mailbox enhancements
  152. From: klemets@sics.se
  153. Date: Tue, 06 Nov 90 19:08:56 +0100
  154. ==============================================================================
  155. The NOS mailbox now includes an SF command for forwarding a message
  156. and an SR command for replying to a message.
  157.  
  158. This version also hopefully does not have the problems with mail file
  159. locking that some of you have experienced recently. (I made those
  160. changes a couple of weeks ago.)
  161.  
  162. I have also changed things so that the rewrite file is now scanned by
  163. the SMTP server when messages are received, before the alias file is
  164. scanned. This will allow you to send BBS-style addressed mail with
  165. hierarchical routing desginators using SMTP.
  166.  
  167. The rewrite file is still scanned when a message is received
  168. by the BBS. If the resulting address is local, ie. there is no
  169. '@'-sign, the BBS will pass the message to the local SMTP server as
  170. usual, but then the rewrite changes are not applied by the BBS. This
  171. is to avoid applying the rewrite file twice, which could cause
  172. unexpected effects.
  173.  
  174. The changed files are in archive/packet/ka9q/nos/mailbox.arc at sics.se
  175.  
  176. Have fun,
  177.      Anders
  178.  
  179. ==============================================================================
  180. Subject: more mailbox enhancements
  181. From: klemets@sics.se
  182. Date: Wed, 07 Nov 90 16:18:25 +0100
  183. ==============================================================================
  184. I changed the mailbox code so that the new commands SF and SR only
  185. work when a normal user executes them. If another BBS connects and
  186. sends SR, that will still be interpreted as an attempt to send a
  187. message of type R instead of the reply command. This will provide
  188. compability with other BBSes.
  189.  
  190. If one uses NOS to forward messages between two MBL/RLI type BBSes,
  191. one will discover that NOS has the annoying habit of adding
  192. RFC-822 headers to every message, instead of the "R:" headers used by
  193. the other BBSes.
  194.  
  195. I have solved the co-existance problem between RFC-822 and R: headers
  196. in the following manner: RFC-822 headers are still added to all
  197. messages received by the mailbox. When a message is forwarded to
  198. another BBS, the RFC-822 header is normally included. But if this
  199. message was received by forwarding from another BBS, however, it will
  200. have R: header lines. In that case, the RFC-822 header is converted to
  201. an appropriate R: line when NOS forwards the message.
  202.  
  203. The Read command will also digest any R: headers into a "Path:" line
  204. in the same way other BBSes do. The Verbose command can be used to
  205. view all header lines in full.
  206.  
  207. This makes this version of the mailbox fully comparable with any
  208. W0RLI/WA7MBL/AA4RE BBS or MSYS. In general, NOS will have a lot more
  209. features than any of these programs, as far as I can tell. Does
  210. anybody know about some vital feature of MSYS that the NOS BBS is
  211. still lacking?
  212.  
  213. Anders
  214.